<?php

use Illuminate\Routing\Router;

Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'namespace'  => config('admin.route.namespace'),
    'middleware' => config('admin.route.middleware'),
    'as'         => config('admin.route.prefix') . '.',
], function (Router $router) {

    $router->get('/', 'HomeController@index')->name('home');
    $router->get('/forms/config', 'SystemSetController@settings');

    $router->resource('apply-publish', ApplyPublishController::class);
    $router->resource('users', UserController::class);
    $router->resource('order', OrderController::class);
    $router->resource('article', ArticleController::class);
    $router->resource('article-cat', ArticleCatController::class);

});
